<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../5.25/vue.js"></script>
</head>
<body>
    <div id="app">
        <p>{{myData}}</p>
        <p>{{nobase}}</p>
    </div>

    <script>
        var vm=new Vue({
            el:"#app",
            customOption:'自定义数据',
            data:{
                myData:"我是基础变量"
            },

            created(){
                //在创建vue以前先执行的编码
                this.nobase=this.$options.customOption
            }
        })
    </script>
</body>
</html>